package com.example.tse.rbhttpservice.service.goods.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


/**
* 获取商品价格等信息（含价格、库存、限购数量、货品ID），商品信息对应的商品编号每个货品都需要改变的
* @author wliu
* edit tse
*/
public class GoodsGetPriceSpecs extends RudderResponse{

private String specId = "";


private String specName = "";


private List<GoodsGetPriceSpecsSpecValues> specValues = new ArrayList<GoodsGetPriceSpecsSpecValues>();


/**
* @return specId
*/
public String getSpecId() {
return this.specId;
}

/**
* @return specId
*/
public void setSpecId(String specId) {
this.specId = specId;
}
/**
methodName    SpecId
type          String
name          specId
defaultType   ""
*/

/**
* @return specName
*/
public String getSpecName() {
return this.specName;
}

/**
* @return specName
*/
public void setSpecName(String specName) {
this.specName = specName;
}
/**
methodName    SpecName
type          String
name          specName
defaultType   ""
*/

/**
* @return specValues
*/
public List<GoodsGetPriceSpecsSpecValues> getSpecValues() {
return this.specValues;
}

/**
* @return specValues
*/
public void setSpecValues(List<GoodsGetPriceSpecsSpecValues> specValues) {
this.specValues = specValues;
}
/**
methodName    SpecValues
type          List<GoodsGetPriceSpecsSpecValues>
name          specValues
defaultType   new ArrayList<GoodsGetPriceSpecsSpecValues>()
*/

/**


    private static void filterFor(GoodsGetPriceSpecsSpecValues goods) {
        if (goods.getProductId() == null) {
            goods.setProductId("");
        }
        if (goods.getSpecValue() == null) {
            goods.setSpecValue("");
        }
    }

    public static void filter(GoodsGetPriceSpecs goods) {
        if (goods.getSpecId() == null) {
            goods.setSpecId("");
        }
        if (goods.getSpecName() == null) {
            goods.setSpecName("");
        }
        if (goods.getSpecValues() == null) {
            goods.setSpecValues(new ArrayList<GoodsGetPriceSpecsSpecValues>());
        } else {
            for (GoodsGetPriceSpecsSpecValues item : goods.getSpecValues()) {
                filterFor(item);
            }
        }
    }

*/

}
